import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CangkuKanbanComponent } from './cangku-kanban/cangku-kanban.component';
import { ShengchanKanbanComponent } from './shengchan-kanban/shengchan-kanban.component';
import { CanActivateGuard } from '../@core/services/can-load-service.guard';

const routes: Routes = [
  {
    path: 'cangku-kanban',
    component:CangkuKanbanComponent,
    canActivate: [CanActivateGuard]
  },
  {
    path: 'shengchan-kanban',
    component:ShengchanKanbanComponent,
    canActivate: [CanActivateGuard]
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class KanbanRoutingModule { }
